import { StackActions,CommonActions } from '@react-navigation/native';

const pushAction = StackActions.push('Profile', { user: 'Wojtek' });

export const reset = (navigation,name,param)=>{
    navigation.dispatch(
        CommonActions.reset({
            index: 0,
            routes: [
                {
                    name: name,
                    params: param
                },
            ],
        })
    );
}
